def make(var a:Int):Int->Int {
    var cnt = 0;
    def foo(var b:Int):Int {
        cnt = cnt + 1;
        print(cnt);
        return b;
    }

    cnt = cnt + 1;

    return foo;
}

var f = make(0);
f(1);
f(2);
f(1);
f(1);

